package com.lovegu.basic;

/**
 * @author 老顾
 * @title: SwitchTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/20 15:20
 */
public class SwitchTest {
    public static void main(String[] args) {
        int i = 1;
        switch (i) {
            case 0:
                System.out.println("zero");
                break;
            case 1:
                System.out.println("one");
                break;
            default:
                System.out.println("default");
                break;
        }
        String season = "summer";
        switch(season)

        {
            case "com/lovegu/spring":
                System.out.println("春暖花开");
                break;
            case "summer":
                System.out.println("夏日炎炎");
                break;
            case "autumn":
                System.out.println("秋高气爽");
                break;
            case "winter":
                System.out.println("冬雪皑皑");
                break;
            default:
                System.out.println("季节输入有误");
                break;
        }
    }
}
